//
//  Int+QZSwiftUI.swift
//  CrseAsst
//
//  Created by 申铭 on 2024/2/28.
//

import Foundation

extension Int {
    /// 将秒数转成 00:00 的格式
    func toSecondStr() -> String {
        let seconds = self % 60
        let minutes = self / 60
        return String(format: "%02d:%02d", minutes, seconds)
    }
}
